package com.ebolib.net;

import com.ebo.commonlib.model.GsonModel;

/**
 * Created by admin on 2018/5/4.
 */

public abstract class CompactModel extends GsonModel {

    protected String error;
    protected String error_msg;
    private Integer is_auth;

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getError_msg() {
        return error_msg;
    }

    public void setError_msg(String error_msg) {
        this.error_msg = error_msg;
    }

    public Integer getIs_auth() {
        return is_auth;
    }

    public void setIs_auth(Integer is_auth) {
        this.is_auth = is_auth;
    }

    public boolean isSuccess() {
        if ("0".equalsIgnoreCase(error)) {
            return true;
        } else
            return false;
    }

    public boolean isOutdate() {
        if (is_auth != null&&is_auth == 0) return true;
        return false;
    }
}
